package org.neuedu.controller;

import jakarta.annotation.Resource;
import org.neuedu.common.ResultJson;
import org.neuedu.entity.MedicalTechnology;
import org.neuedu.service.MedicalTechnologyService;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lzw
 * @since 2024-11-17
 */
@RestController
@RequestMapping("/medicalTechnology")
public class MedicalTechnologyController {
    @Resource
    MedicalTechnologyService medicalTechnologyService;
    @GetMapping("/list")
    public ResultJson<List<MedicalTechnology>> list (String type, String techCode, String techName) {
        return ResultJson.success(medicalTechnologyService.getByType(type, techCode, techName));
    }
}
